package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Banner;
import cn.wolfcode.wolf2w.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * banner持久化操作接口
 */
public interface BannerRepsitory extends MongoRepository<Banner, String> {


    /**
     * 查询指定类型的banner
     * @param type
     * @param state
     * @param pageable
     * @return
     */
    List<Banner> findByTypeAndState(int type, int state, Pageable pageable);
}
